package com.andy.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import sun.reflect.generics.tree.VoidDescriptor;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;


@RestController
public class DemoController {

    @RequestMapping("/demo/app")
    public void demo(HttpServletRequest servletRequest, HttpServletResponse servletResponse) throws IOException {
        servletResponse.getWriter().write("Hello World!");
    }

}
